www.gusucode.com > 云网互动影视系统(12套模版和资源联盟) 6.2 > 云网互动影视系统(12套模版和资源联盟) 6.2.4/免费版/Admin/Admin_Css.asp
<html> <head> <META content=ywnt,云网互动影视管理系统 name=keywords> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>云网互动影视6.0--CSS样式管理</title> <LINK href="css/css.css" type=text/css rel=stylesheet> </head> <BODY leftMargin=0 topMargin=0 scroll=yes MARGINHEIGHT="0" MARGINWIDTH="0"> <!--#include file="../Conn.asp" --> <!--#include file="YWNT_TMS_inc/YWNT_TMS_Function.asp" --> <% '=================================================================================================================== '软件名称:云网影视管理系统 'Copyright (C) 2002-2007 ywnt.net All rights reserved. '产品咨询QQ:489234,2813712 '程序版权:云网互动科技有限公司 '程序开发:云网互动科技有限公司 '官方网站:http://www.ywnt.net '郑重声明: ' 1、免费版本请在程序首页保留版权信息,并做上本站LOGO友情连接,商业版本无此要求; ' 2、任何个人或组织不得在授权允许的情况下删除、修改、拷贝本软件及其他副本上一切关于版权的信息; ' 3、云网互动科技有限公司保留此软件的法律追究权利 '=================================================================================================================== Call CheckLogin("Template") sub EditSave() Set Rs=Server.CreateObject(YWNT_TMS_RS) sql="select * from YWNT_TMS_Css where ID="&NoSqlHack(Request.Form("ID")) Rs.open sql,Conn,1,3 RS("CssName")=NoSqlHack(Request.Form("CssName")) RS("CssContent")=Request.Form("CssContent") Rs.Update Rs.Close Set Rs = Nothing Call AddLog("修改CSS"&Request.Form("CssName"),6) call Admin_ShowErr("<li>修改CSS样式成功</li>","Admin_Css.asp",1) end sub sub AddSave() Set Rs=Server.CreateObject(YWNT_TMS_RS) sql="select * from YWNT_TMS_Css" Rs.open sql,Conn,1,3 Rs.addnew RS("CssName")=NoSqlHack(Request.Form("CssName")) RS("CssContent")=Request.Form("CssContent") RS("CssDate")=Date() Rs.Update Rs.Close Set Rs = Nothing Call AddLog("添加CSS"&Request.Form("CssName"),6) call Admin_ShowErr("<li>添加CSS样式成功</li>","Admin_Css.asp",1) end sub sub Del() conn.execute "delete from YWNT_TMS_Css WHERE ID = "&NoSqlHack(Request("ID"))&"" Call AddLog("删除CSS",6) call Admin_ShowErr("<li>删除CSS样式成功!</li>","Admin_Css.asp",1) end sub%> <table class=table cellspacing=1 cellpadding=3 width="98%" align=center border=0> <tbody> <tr> <td class=xingmu>CSS样式管理</td> </tr> <tr> <td class="hback"><a href="Admin_Css.asp?Action=Add">CSS样式添加</a> | <a href="Admin_Template.asp">模版管理</a> | <a href="Admin_Template.asp?Action=Add">添加模版(可视模式)</a> | <a href="Admin_Txt_Template.asp?Action=Add">添加模版(文本模式)</a> | <a href="Admin_labeling.asp">自由标签管理</a> | <a href="Admin_labeling.asp?Action=Add">添加自由标签(可视模式)</a> | <a href="Admin_Txt_Template.asp?Action=Lebelingadd">添加自由标签(文本模式)</a></td> </tr> </tbody> </table> <% Action=Trim(request("Action")) Select Case Action Case "Add" call Add() Case "AddSave" call AddSave() Case "Edit" Set Rs=Server.CreateObject(YWNT_TMS_RS) sql="select * from YWNT_TMS_Css where ID="&NoSqlHack(Request.QueryString("ID")) Rs.open sql,Conn,1,1 YWNT_TMS_ID=RS("ID") YWNT_TMS_CssName=RS("CssName") YWNT_TMS_CssContent=RS("CssContent") RS.close set RS=nothing call Edit() Case "EditSave" call EditSave() Case "Del" call Del() Case "Derived" call Derived() Case "Introduction" call Introduction() Case else call List() End Select sub List()%> <table class=table cellspacing=1 cellpadding=3 width="98%" align=center border=0> <tbody> <tr> <td width="5%" align="center" class=xingmu>ID</td> <td align="center" class=xingmu>CSS样式名称</td> <td width="10%" align="center" class=xingmu>添加时间</td> <td width="10%" align="center" class=xingmu>操作</td> </tr> <%Set Rs = server.CreateObject(YWNT_TMS_RS) sql="Select ID,CssName,CssDate from YWNT_TMS_Css Order by ID desc" Rs.open sql,Conn,1,1 if RS.eof then Response.Write"<TR class=""hback""><TD colspan=""4"" class=""hback"" height=""40"">没有记录。</TD></TR>" else do while not RS.eof%> <tr> <td height=32 align="center" class="hback"><%=RS("ID")%></td> <td height=32 class="hback"><%=RS("CssName")%></td> <td align="center" class="hback"><%=RS("CssDate")%></td> <td align="center" class="hback"><A href="Admin_Css.asp?Action=Edit&ID=<%=RS("ID")%>">修改</A>|<A onClick="{if(confirm('确定要删除吗?\n如果此CSS样式将会影响具有该样式的模版!!')){return true;}return false;}" href="Admin_Css.asp?Action=Del&ID=<%=RS("ID")%>">删除</A></td> </tr> <%RS.movenext loop end if RS.close set RS=nothing%> </tbody> </table> <%end sub sub Add()%> <table class=table cellspacing=1 cellpadding=3 width="98%" align=center border=0> <tbody> <tr> <td colspan="2" class=xingmu>添加CSS样式</td> </tr> <form name="form" action="Admin_Css.asp?Action=AddSave" method="post"> <tr> <td width="21%" height=32 align="right" class="hback">CSS样式名称:</td> <td height=7 class="hback"><input name="CssName" type="text" id="CssName" size="40"></td> </tr> <tr align="center"> <td height=32 colspan="2" class="hback"><textarea name="CssContent" style="width:100%; height:400px; " id="CssContent"></textarea></td> </tr> <tr> <td height=32 colspan="2" align="center" class="hback"><input type="submit" name="Submit" value="添 加"></td> </tr> </form> </tbody> </table> <%end sub sub Edit()%> <table class=table cellspacing=1 cellpadding=3 width="98%" align=center border=0> <tbody> <tr> <td colspan="2" class=xingmu>修改CSS样式</td> </tr> <form name="form" action="Admin_Css.asp?Action=EditSave" method="post"> <tr> <td width="21%" height=32 align="right" class="hback">CSS样式名称:</td> <td height=7 class="hback"><input name="CssName" type="text" id="CssName" value="<%=YWNT_TMS_CssName%>" size="40"></td> </tr> <tr align="center"> <td height=32 colspan="2" class="hback"><textarea name="CssContent" style="width:100%; height:400px; " id="CssContent"><%=YWNT_TMS_CssContent%></textarea></td> </tr> <tr> <td height=32 colspan="2" align="center" class="hback"><input name="ID" type="hidden" value="<%=YWNT_TMS_ID%>"><input type="submit" name="Submit" value="修 改"></td> </tr> </form> </tbody> </table> <%end sub call connclose()%> </BODY></HTML>